package com.test.Servlet;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Servlet implementation class viewTestcase
 */
@WebServlet("/viewTestcase")
public class viewTestcase extends HttpServlet {

	
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		
System.out.println("获取前端更新数据");
		
		int id = Integer.parseInt(request.getParameter("select_id"));
		
		response.sendRedirect("commentcase.jsp?id="+id);
	}



}
